package com.qfmy.common.constant;

/**
 * @author 清风明月
 * @Package com.qfmy.web.app
 * @date 2025/10/31
 * @description redis的常量定义
 */
@SuppressWarnings("all")
public class RedisConstant {

    /**
     * app端最热小说的前缀
     */
    public static final String APP_HOT_NOVEL_PREFIX = "app:hotNovels";

    /**
     * app端轮播图的前缀
     */
    public static final String APP_CAROUSEL_PREFIX = "app:carousel:";

    /**
     * app小说排行的前缀
     */
    public static final String APP_RANK_PREFIX = "app:rank:" ;

    /**
     * 获取限时免费的小说的前缀
     */
    public static final String APP_FREE_NOVEL_PREFIX = "app:freeNovel:" ;

    /**
     * 获取评分最高的两个小说的前缀
     */
    public static final String APP_TOP_2_SCORE_PREFIX = "app:ratingTopTow";

    /**
     * app热门完本小说
     */
    public static final String APP_HOT_END_PREFIX = "app:hotEndNovel:";

    /**
     * app今日必读的前缀
     */
    public static final String APP_TODAY_MUST_READ_PREFIX = "app:todayRead:" ;

    /**
     * app最新小说的前缀
     */
    public static final String APP_NEW_BOOKS_PREFIX = "app:newNovel:";

    /**
     * 免费新书帮
     */
    public static final String APP_FREE_RANK_PREFIX = "app:freeRank";

    /**
     * 小说热读榜
     */
    public static final String NOVEL_RANK_KEY = "novel:rank:" ;

    /**
     * 小说搜索次数
     */
    public static final String NOVEL_SEARCH_COUNT_KEY ="novelSearchCount:" ;

    /**
     * app端图形验证码的key的前缀
     */
    public static final long APP_GRAPHIC_CODE_TTL = 5;

    /**
     * app端小说的标签的前缀
     */
    public static final String APP_CATEGORY_TAGS_PREFIX = "app:categoryTags:" ;
}